module IPFS.Client.Command.Utils.TarStreamToObjects (
  tarStreamToObjects,
  GetFile(..)
) where

import Prelude

import Effect (Effect)
import Node.Buffer (Buffer)
import Node.StreamEx.Types (Readable)

type GetFile = {
  path::String,
  content::Readable Buffer
}

foreign import tarStreamToObjects::Readable Buffer -> ((Readable GetFile) -> Effect Unit) -> Effect Unit